package com.yunmai.library;

import android.content.Context;

public interface IRepositoryManager {


  /**
   * 根据传入的 Class 获取对应的 Retrofit service
   *
   * @param service
   * @param <T>
   * @return
   */
  <T> T obtainRetrofitService(Class<T> service);

  <T> T obtainDatabase(Context context, Class<T> database);

  void clear();

}
